<!DOCTYPE html>
<html lang="zh-CN" version="g42dymwpi--nx">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="http://v3.bootcss.com/favicon.ico">

    <title>adminlist</title>

    <!-- Bootstrap core CSS -->
    <link href="__PUBLIC__/public/CSS/bootstrap.min.css" rel="stylesheet">

    <link rel="stylesheet" type="text/css" href="__PUBLIC__/public/CSS/page.css">

    <!-- Custom styles for this template -->
    <link href="__PUBLIC__/public/CSS/dashboard.css" rel="stylesheet">

    <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
    <!--[if lt IE 9]><script src="js/ie8-responsive-file-warning.js"></script><![endif]-->
    <script src="__PUBLIC__/public/JS/ie-emulation-modes-warning.js"></script><style type="text/css" adt="123"></style>

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
      <script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
    <nav class="navbar navbar-inverse navbar-fixed-top">
        <div class="container-fluid">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                    <span class="sr-only">app</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#">送审管理系统</a>
            </div>
            <div id="navbar" class="navbar-collapse collapse">
                <ul class="nav navbar-nav navbar-right">
                    <li><a href="<{:U('Home/Send/basic')}>">送审管理</a></li>
                    <li><a href="<{:U('Home/User/allUser')}>">用户管理</a></li>
                    <li class="active"><a href='<{:U("Home/Module/moduleInfo",array("type"=>"土建专业"))}>'>模块信息</a></li>
                    <li><a href='<{:U("Home/Index/logout")}>'><span class="glyphicon glyphicon-user" aria-hidden="true"></span>&nbsp;<{$username}></a></li>
                </ul>
            </div>
        </div>
    </nav>

    <div class="container-fluid">
        <div class="row">
        <!--小屏幕不可见开始-->
            <div class="col-sm-3 col-md-2 sidebar">
                <ul class="nav nav-sidebar">
                    <switch name="type">
                        <case value="土建专业">
                            <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                        </case>
                        <case value="铁塔专业">
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                            <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                        </case>
                        <case value="交流专业">
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                            <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>

                        </case>
                        <case value="配套专业">
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                            <li class="active"><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                        </case>
                        <default />
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"土建专业"))}>'>土建专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"铁塔专业"))}>'>铁塔专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"配套专业"))}>'>配套专业</a></li>
                            <li ><a href='<{:U("Home/Module/ModuleInfo",array("type"=>"交流专业"))}>'>交流专业</a></li>
                    </switch>
                </ul>
            </div>
        <!--小屏幕不可见结束-->

        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <h2 class="sub-header"><{$type}>模块管理
            <if condition="$type">
            <a class="link" href='<{:U("Home/Module/moduleInfo",array("status"=>"add","type"=>$type))}>'><button type="button " class="btn btn-default" style="float:right;"><font color="#0099CC
            ">新增模块</font></button></a>
            </if></h2>
            <div class="table table-responsive ">
                <table class="table table-striped table-bordered table-condensed">
                    <thead>
                        <tr>
                            <th>序号</th>
                            <th>模块名称</th>
                            <th>简要工作内容</th>
                            <th>分类</th>
                            <th>基准价</th>
                        <if condition="$type eq '交流专业'">
                          <th>超基础价格</th>
                          <th>基准数量</th>
                          <th>计量单位</th>
                        <else />
                            <th>安全生产费</th>
                            <th>合计</th>
                            <th>计量单位</th>
                            <th>优惠率</th>
                        </if>
                            <th>操作</th>
                        </tr>
                    </thead>
                    <tbody>
                        <foreach name="moduleData" item="v">
                            <tr>
                                <td><{$v.id}></td>
                                <td><{$v.module_name}></td>
                                <td title="<{$v.remark}>">工作内容....</td>
                                <td><{$v.class}></td>
                                <td><{$v.baseprice}></td>
                                <td><{$v.safeprice}></td>
                                <if condition="$type eq '交流专业'">
                                    <td><{$v.basenum}></td>
                                    <td><{$v.measure}></td>
                                <else />
                                    <td><{$v['baseprice']+$v['safeprice']}></td>
                                    <td><{$v.measure}></td>
                                    <td><button type="button " class="btn btn-xs btn-default"><a class="link" href='<{:U("Home/Module/discount",array("status"=>"info","mid"=>$v["number"],"type"=>$v["type"],"class"=>$v["class"], "id"=>$v["id"]))}>'>查看</a></button></td>
                                </if>
                                <td>
                                    <div class="btn-group btn-group-xs" role="group" aria-label="...">
                                        <button type="button" class="btn btn-default" data-toggle="modal" data-target="#myModal-xg"><a class="link" href='<{:U("Home/Module/moduleInfo",array("status"=>"mod","id"=>$v["id"],"type"=>$v.type))}>'>修改</a></button>
                                        <button type="button" class="btn btn-default" data-toggle="modal" onclick="if(confirm('确定删除吗?'))
                                        {return true;}return false;"><a class="link" href='<{:U("Home/Module/moduleInfo",array("status"=>"del","id"=>$v["id"],"type"=>$v.type))}>'>删除</a></button>
                                    </div>
                                </td>
                            </tr>
                        </foreach>
                        <tr>
                            <if condition="$count gt $listRows">
                               <td colspan="10"><{$show}></td>
                            </if>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="__PUBLIC__/public/JS/jquery.min.js"></script>
    <script src="__PUBLIC__/public/JS/bootstrap.min.js"></script>
    <script src="__PUBLIC__/public/JS/bootstrap-table.js"></script>
    <!-- Just to make our placeholder images work. Don't actually copy the next line! -->
    <script src="__PUBLIC__/public/JS/holder.min.js"></script>
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <script src="__PUBLIC__/public/JS/ie10-viewport-bug-workaround.js"></script>

</body>
</html>
